import Detail from '@/views/Detail'
import ShopCar from '@/views/ShopCar'
import Login from '@/views/Login'
import ConfirmAddress from '@/views/ConfirmAddress'
import MyOrder from "@/views/Center/MyOrder"
import Center from "@/views/Center"
import Home from "@/views/Home";
import Category from "@/views/Category";

import Member from "@/views/Member";

// import Pay from "@/views/Pay"
// import PaySuccess from "@/views/PaySuccess"
import Trade from "@/views/Trade"



export default [
  {
    path: "/member",
    // name: "detail",
    component: Member,
  },
  {
    path: "/detail/:id?",
    name: "detail",
    component: Detail,
  },
  {
    path: "/home",
    name: "home",
    component: Home,
  },
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/category',
    component: Category
  },
  {

    path: '/login',
    component: Login
  },

  {

    path: '/shopCar/:id?',
    name: "shopCar",
    component: ShopCar

  },
  {
    path: '/confirmAddress/:id?',
    name: 'confirmAddress',
    component: ConfirmAddress
  },
  {
    path: '/center',
    component: Center,
    children: [
      {
        path: 'myOrder',
        component: MyOrder
      },
    ]
  },

  // {

  //   path: '/pay',
  //   name: "pay",
  //   component: Pay

  // },
  // {

  //   path: '/paySuccess',
  //   name: "paySuccess",
  //   component:PaySuccess

  // },
  {

    path: '/trade',
    name: "trade",
    component: Trade

  },
]
